// pages/familydoctor/servercenter/servercenter.js
var app = getApp()

Page({

  /**
   * 页面的初始数据
   */
  data: {
    update:false,
    shanchanglist: ["全部(550)", "气胸(16)", "肺癌(18)", "胸腔积液(5)", "肋骨骨折(4)", "心包积液(2)", "多汗症(1)"],
  },
  teamlist(){
    this.setData({
      update: !this.data.update
    })
  },
  team: function(e) {
    wx.navigateTo({
      url: '/hyb_yl/zhuanjiasubpages/pages/huanzhexinxi/huanzhexinxi?inquiry=""',
    })
  },
  navicate() {
    var that = this
    wx.reLaunch({
      url: '/hyb_yl/tabBar/index/index',
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    var bgc = wx.getStorageSync('color')
    wx.setNavigationBarColor({
      frontColor: "#ffffff",
      backgroundColor: bgc,
    })
    var that = this
    var zid = options.zid
    var sid = options.sid
    var key = options.key
    var name = options.name
    that.setData({
      zid: zid,
      sid: sid,
      key: key,
      name: name
    })
    app.util.request({
      'url': 'entry/wxapp/Studio.yihu',
      data: {
        zid: zid,
        teamtype: 0,
      },
      success: function(res) {
        console.log(res)
        that.setData({
          myTeamList: res.data.data
        })
      }
    })
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  },

})